$bg: #1a1a1a;
$primary: #409EFF;
$success: #67C23A;
$warning: #E6A23C;
$danger: #F56C6C;
$info: #909399;
$text-primary: #303133;
$text-regular: #606266;
$text-secondary: #909399;
$border-color: #DCDFE6;
$light-gray: #f5f7fa;

.register-container {
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d3a4b 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;

  .register-form {
    width: 480px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;

    &:hover {
      transform: translateY(-5px);
      box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }
  }

  .title-container {
    text-align: center;
    margin-bottom: 40px;

    .title {
      font-size: 28px;
      color: $text-primary;
      font-weight: 600;
      margin: 0;
      position: relative;
      display: inline-block;
      padding-bottom: 10px;

      &:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background: $primary;
        border-radius: 2px;
      }
    }
  }

  .el-form-item {
    margin-bottom: 25px;
    position: relative;

    .el-form-item__label {
      color: $text-regular;
      font-weight: 500;
    }

    .el-input {
      position: relative;

      .el-input__inner {
        height: 45px;
        line-height: 45px;
        border-radius: 8px;
        border: 1px solid $border-color;
        background: $light-gray;
        color: $text-primary;
        transition: all 0.3s ease;
        padding-left: 45px;

        &:hover, &:focus {
          border-color: $primary;
          background: #fff;
          box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.1);
        }
      }
    }

    .el-select {
      width: 100%;

      .el-input__inner {
        padding-left: 15px;
      }
    }

    .el-date-editor {
      width: 100%;
    }
  }

  .el-button {
    width: 100%;
    height: 45px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    background: $primary;
    border: none;
    color: #fff;
    transition: all 0.3s ease;
    margin-top: 10px;

    &:hover {
      background: lighten($primary, 10%);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
    }

    &:active {
      transform: translateY(0);
    }
  }

  .tips {
    text-align: center;
    margin-top: 20px;
    color: $text-secondary;
    font-size: 14px;

    a {
      color: $primary;
      text-decoration: none;
      font-weight: 500;
      margin: 0 5px;
      transition: all 0.3s ease;

      &:hover {
        color: lighten($primary, 10%);
        text-decoration: underline;
      }
    }
  }

  .svg-container {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: $text-secondary;
    font-size: 18px;
    z-index: 1;
    pointer-events: none;
  }

  .show-pwd {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: $text-secondary;
    cursor: pointer;
    font-size: 18px;
    z-index: 1;
    transition: all 0.3s ease;

    &:hover {
      color: $primary;
    }
  }

  // 自定义下拉框样式
  .el-select-dropdown {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

    .el-select-dropdown__item {
      height: 40px;
      line-height: 40px;
      padding: 0 15px;
      color: $text-regular;
      transition: all 0.3s ease;

      &.selected {
        color: $primary;
        font-weight: 500;
        background: rgba(64, 158, 255, 0.1);
      }

      &:hover {
        background: rgba(64, 158, 255, 0.05);
      }
    }
  }

  // 自定义日期选择器样式
  .el-date-editor {
    .el-input__inner {
      padding-left: 40px;
    }
  }

  // 错误提示样式
  .el-form-item__error {
    color: $danger;
    font-size: 12px;
    padding-top: 4px;
  }
} 